//
//  CHCameraUIManage.h
//  SCCAProofSdk
//
//  Created by cyptt on 2022/3/10.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CHjzCameraViewController.h"
#import "CHBaseRecord.h"


NS_ASSUME_NONNULL_BEGIN

@interface CHCameraUIManage : NSObject

-(instancetype)initWithController:(UIViewController *)controller recordPhotoType:(CH_RECORD_PHOTO_TYPE)recordPhotyType isSaveAblum:(BOOL)isSaveAblum SuccessBlock:(void (^ _Nonnull)(id responseObj))successBlock failBlock:(void (^ _Nonnull)(NSError * error))failBlock;

//@property(nonatomic,strong)CHCameraPreView * cameraPreView;
//-(void)setCameraPreView:(CHCameraPreView * _Nonnull)cameraPreView;
@property(nonatomic,assign)CH_RECORD_PHOTO_TYPE recordPhotoType;
@property(nonatomic,strong)CHBaseRecord * chRecord;

-(void)setChRecord:(CHBaseRecord * _Nonnull)chRecord;
/*
 取消点击
 */
-(void)cancelBtnclick:(UIButton *)btn;

/*
 paly 点击
 */
-(void)palyBtnClick:(UIButton *)btn;

/*
 闪光灯点击
 */
-(void)flashBtnClick:(UIButton *)btn;

/*
 翻转摄像头点击
 */
-(void)transferBtnClick:(UIButton *)btn;


@property(nonatomic,strong)NSString * timeStr;
@end

NS_ASSUME_NONNULL_END
